using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using CMS.Core.Domain;

namespace CMS.Presenters
{
    public interface IAppSettingsView
    {
        
        String DataSource { set; get; }
        String Database { set; get;}
        String UserID { set; get; }
        String Password { set; get; }
        String Email { set; get; }
        String EmailPass { set; get; }
        //String LoginType { set; get;}
        //String LDAPServer { set; get;}
        //String LDAPLogin { set; get;}
        //String LDAPAttrib { set; get;}
        //String LDAPAttribExt { set; get;}
        //String LDAPGroup { set; get;}
        String UploadPath { set; get; }
        String MaDiaBan { set; get; }
        String TenDiaBan {get;}
        IList<DiaBan> DiaBanList { set;}
        bool IsFinishUpdate { set; get;}

        String Msg { set;}
        /// <summary>
        /// Event raised when the view is initialized. 
        /// </summary>
        event EventHandler Init;

        /// <summary>
        /// Event raised when the view is loaded. 
        /// This is a good place to load the view's 
        /// initial state from the model.
        /// </summary>
        event EventHandler Load;
        /// <summary>
        /// Determines whether or not the current 
        /// request is a postback.
        /// </summary>
        bool IsPostBack { get; }

        /// <summary>
        /// Indicates to the view that it should refresh itself 
        /// via data binding.
        /// </summary>
        void DataBind();


        /// <summary>
        /// Returns true if the view form input values 
        /// are valid.  Note that the presenter may 
        /// also choose to validate the values. This 
        /// is merely for first pass validation.
        /// </summary>
        bool IsValid { get;}  
    }
}
